package cn.skyquant.quant4j.api.http;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.util.Map;

public interface HttpService {
    JSONObject get(String uristr, Map<String, String> paramMap, Map<String, String> cookieMap, Map<String,String> headerMap);
    JSONArray getArray(String uristr, Map<String, String> paramMap, Map<String, String> cookieMap, Map<String,String> headerMap);
    JSONObject post(String uri, Map<String, String> paramMap, Map<String, String> cookieMap, Map<String,String> headerMap);
    JSONObject put(String uri, Map<String, String> paramMap, Map<String, String> cookieMap, Map<String,String> headerMap);
    JSONObject delete(String uri, Map<String, String> cookieMap, Map<String,String> headerMap);
}
